package com.example.yiznspringtestinterface.aop;

import org.springframework.stereotype.Service;

/**
 * project : my-learn
 * <p> 模拟业务操作类 </p>
 *
 * @author yisl
 * @date 2023-01-05【星期四】
 **/
@Service
public class OrderService {

    @RecordOperate(desc = "保存订单", convert = SavaOrderConvert.class)
    public Boolean saveOrder(SavaOrder savaOrder){
        System.out.println("sava order, oderid" + savaOrder.getId());
        return true;
    }

    @RecordOperate(desc = "更新订单", convert = UpdateOrderConvert.class)
    public Boolean updateOrder(UpdateOrder updateOrder){
        System.out.println("update order, oderid" + updateOrder.getOrderId());
        return true;
    }

}
